package xian.woniu.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import xian.woniu.entity.Orders;
import xian.woniu.entity.OrdersExample;
@Repository
public interface OrdersMapper {
    //给患者续约套餐
    Integer continueSign(Orders orders);
    //查询患者有没有同类型的订单
    List selSameSign(Integer otid,Integer pid);
    //添加患者签约记录
    Integer addSignRecord(Orders orders);
    //查询所有订单
    List<Orders> getAllOrders();
    //查询患者的签约记录
    List selSignRecord(Integer pid);

    //查询所有病人的签约服务
    List<Orders> getAllSignPatient();

    int countByExample(OrdersExample example);

    int deleteByExample(OrdersExample example);

    int deleteByPrimaryKey(Integer oid);

    int insert(Orders record);

    int insertSelective(Orders record);

    List<Orders> selectByExample(OrdersExample example);

    Orders selectByPrimaryKey(Integer oid);

    int updateByExampleSelective(@Param("record") Orders record, @Param("example") OrdersExample example);

    int updateByExample(@Param("record") Orders record, @Param("example") OrdersExample example);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);

    List<Orders> selectByPid(Integer pid);
}